Optimal. Leaf size=66 \[ 4 a^3 A b x+3 a^2 A b^2 x^2+\frac {4}{3} a A b^3 x^3+\frac {1}{4} A b^4 x^4+\frac {B (a+b x)^5}{5 b}+a^4 A \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {27, 81, 45}
\begin {gather*} a^4 A \log (x)+4 a^3 A b x+3 a^2 A b^2 x^2+\frac {4}{3} a A b^3 x^3+\frac {B (a+b x)^5}{5 b}+\frac {1}{4} A b^4 x^4 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 45
Rule 81
Rubi steps
\begin {align*} \int \frac {(A+B x) \left (a^2+2 a b x+b^2 x^2\right )^2}{x} \, dx &=\int \frac {(a+b x)^4 (A+B x)}{x} \, dx\\ &=\frac {B (a+b x)^5}{5 b}+A \int \frac {(a+b x)^4}{x} \, dx\\ &=\frac {B (a+b x)^5}{5 b}+A \int \left (4 a^3 b+\frac {a^4}{x}+6 a^2 b^2 x+4 a b^3 x^2+b^4 x^3\right ) \, dx\\ &=4 a^3 A b x+3 a^2 A b^2 x^2+\frac {4}{3} a A b^3 x^3+\frac {1}{4} A b^4 x^4+\frac {B (a+b x)^5}{5 b}+a^4 A \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 83, normalized size = 1.26 \begin {gather*} a^4 B x+2 a^3 b x (2 A+B x)+a^2 b^2 x^2 (3 A+2 B x)+\frac {1}{3} a b^3 x^3 (4 A+3 B x)+\frac {1}{20} b^4 x^4 (5 A+4 B x)+a^4 A \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.70, size = 94, normalized size = 1.42
method | result | size |
norman | \(\left (\frac {1}{4} A \,b^{4}+B a \,b^{3}\right ) x^{4}+\left (\frac {4}{3} A a \,b^{3}+2 B \,a^{2} b^{2}\right ) x^{3}+\left (3 a^{2} A \,b^{2}+2 B \,a^{3} b \right ) x^{2}+\left (4 A \,a^{3} b +B \,a^{4}\right ) x +\frac {B \,b^{4} x^{5}}{5}+a^{4} A \ln \left (x \right )\) | \(92\) |
default | \(\frac {B \,b^{4} x^{5}}{5}+\frac {A \,b^{4} x^{4}}{4}+x^{4} B a \,b^{3}+\frac {4 a A \,b^{3} x^{3}}{3}+2 x^{3} B \,a^{2} b^{2}+3 a^{2} A \,b^{2} x^{2}+2 x^{2} B \,a^{3} b +4 A \,a^{3} b x +B \,a^{4} x +a^{4} A \ln \left (x \right )\) | \(94\) |
risch | \(\frac {B \,b^{4} x^{5}}{5}+\frac {A \,b^{4} x^{4}}{4}+x^{4} B a \,b^{3}+\frac {4 a A \,b^{3} x^{3}}{3}+2 x^{3} B \,a^{2} b^{2}+3 a^{2} A \,b^{2} x^{2}+2 x^{2} B \,a^{3} b +4 A \,a^{3} b x +B \,a^{4} x +a^{4} A \ln \left (x \right )\) | \(94\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 93, normalized size = 1.41 \begin {gather*} \frac {1}{5} \, B b^{4} x^{5} + A a^{4} \log \left (x\right ) + \frac {1}{4} \, {\left (4 \, B a b^{3} + A b^{4}\right )} x^{4} + \frac {2}{3} \, {\left (3 \, B a^{2} b^{2} + 2 \, A a b^{3}\right )} x^{3} + {\left (2 \, B a^{3} b + 3 \, A a^{2} b^{2}\right )} x^{2} + {\left (B a^{4} + 4 \, A a^{3} b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.73, size = 93, normalized size = 1.41 \begin {gather*} \frac {1}{5} \, B b^{4} x^{5} + A a^{4} \log \left (x\right ) + \frac {1}{4} \, {\left (4 \, B a b^{3} + A b^{4}\right )} x^{4} + \frac {2}{3} \, {\left (3 \, B a^{2} b^{2} + 2 \, A a b^{3}\right )} x^{3} + {\left (2 \, B a^{3} b + 3 \, A a^{2} b^{2}\right )} x^{2} + {\left (B a^{4} + 4 \, A a^{3} b\right )} x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.08, size = 95, normalized size = 1.44 \begin {gather*} A a^{4} \log {\left (x \right )} + \frac {B b^{4} x^{5}}{5} + x^{4} \left (\frac {A b^{4}}{4} + B a b^{3}\right ) + x^{3} \cdot \left (\frac {4 A a b^{3}}{3} + 2 B a^{2} b^{2}\right ) + x^{2} \cdot \left (3 A a^{2} b^{2} + 2 B a^{3} b\right ) + x \left (4 A a^{3} b + B a^{4}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.35, size = 94, normalized size = 1.42 \begin {gather*} \frac {1}{5} \, B b^{4} x^{5} + B a b^{3} x^{4} + \frac {1}{4} \, A b^{4} x^{4} + 2 \, B a^{2} b^{2} x^{3} + \frac {4}{3} \, A a b^{3} x^{3} + 2 \, B a^{3} b x^{2} + 3 \, A a^{2} b^{2} x^{2} + B a^{4} x + 4 \, A a^{3} b x + A a^{4} \log \left ({\left | x \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.04, size = 84, normalized size = 1.27 \begin {gather*} x\,\left (B\,a^4+4\,A\,b\,a^3\right )+x^4\,\left (\frac {A\,b^4}{4}+B\,a\,b^3\right )+\frac {B\,b^4\,x^5}{5}+A\,a^4\,\ln \left (x\right )+a^2\,b\,x^2\,\left (3\,A\,b+2\,B\,a\right )+\frac {2\,a\,b^2\,x^3\,\left (2\,A\,b+3\,B\,a\right )}{3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________